{% extends "VozminoskiStoreBundle:Admin:layout.html.twig" %}
{% block content %}
<form  method="post" class="form-horizontal">
    <fieldset>
        <legend>Order info</legend>

        <div class="control-group">
            <div class='control-label'>
                Status
            </div>

            <div class="controls">
                {{ entity.status ? 'PAID' : 'PENDING' }}
            </div>
        </div>

        <div class="control-group">
            <div class='control-label'>
            Payment type
            </div>
            <div class="controls">
                {{ entity.paymentType }}
            </div>
        </div>

        <div class="control-group">
            <div class='control-label'>
            Date
            </div>

            <div class="controls">
                {{ entity.createdAt | date('d/m/Y H:i') }}
            </div>
        </div>

        <div class="control-group">
            <div class='control-label'>
                Name
            </div>

            <div class="controls">
                {{ entity.address.name }}
            </div>
        </div>

        <div class="control-group">
            <div class='control-label'>
                Surname
            </div>

            <div class="controls">
                {{ entity.address.surname }}
            </div>
        </div>


        <div class="control-group">
            <div class='control-label'>
                Phone
            </div>

            <div class="controls">
                {{ entity.address.phone }}
            </div>
        </div>

        <div class="control-group">
            <div class='control-label'>
                Email
            </div>

            <div class="controls">
                {{ entity.address.email }}
            </div>
        </div>


        <div class="control-group">
            <div class='control-label'>
                City
            </div>

            <div class="controls">
                {{ entity.address.city }}
            </div>
        </div>

        <div class="control-group">
            <div class='control-label'>
                Address
            </div>

            <div class="controls">
                {{ entity.address.address }}
            </div>
        </div>

        <div class="control-group">
            <div class='control-label'>
                Building
            </div>

            <div class="controls">
                {{ entity.address.building }}
            </div>
        </div>


        <div class="control-group">
            <div class='control-label'>
                Flat
            </div>

            <div class="controls">
                {{ entity.address.flat }}
            </div>
        </div>

        {% for item in entity.items %}
            <hr>
        <div class="control-group">
            <div class='control-label'>
                Color
            </div>

            <div class="controls">
                {{ item.color }}
            </div>
        </div>

        <div class="control-group">
            <div class='control-label'>
                Size
            </div>

            <div class="controls">
                {{ item.size }}
            </div>
        </div>

        <div class="control-group">
            <div class='control-label'>
                Count
            </div>

            <div class="controls">
                {{ item.count }}
            </div>
        </div>

        <div class="control-group">
            <div class='control-label'>
                Product Name
            </div>

            <div class="controls">
                {{ item.product.name }}
            </div>
        </div>
        {% endfor %}

    </fieldset>
</form>

{% endblock %}

